#include<stdio.h>
int coins[501];

int main(){
    int n,m;
    scanf("%d %d",&n,&m);
    while(n-->0){
        int facevalue;
        scanf("%d",&facevalue);
        coins[facevalue]+=1;
    }
    for(int i=1;i<=500;i++){
        if(coins[i]>0){
            coins[i]--;
            if(m-i<=500&&coins[m-i]>0){
                printf("%d %d",i,m-i);
                return 0;
            }
            coins[i]++;
        }
    }
    printf("No Solution");
    return 0;
}
